export function isFileStream(data) {
  return !!(data instanceof Blob || data instanceof ArrayBuffer);
}

export const isExternal = (path) => /^(https?:|mailto:|tel:)/.test(path);

export const isFunction = (val) => typeof val === 'function';
